/*
 * SerializableB.h
 *
 *  Created on: 13.11.2011
 *      Author: Pavel Sinay
 */

#ifndef SERIALIZABLEB_H_
#define SERIALIZABLEB_H_

#include <vector>
#include "Serializable.h"
#include "SerializableB.h"
#include "ReaderB.h"

class SerializableB: public Serializable {
public:
	friend class ReaderB;

	SerializableB();
	virtual ~SerializableB();
	virtual std::string serialize() const;
	virtual void deserialize(const std::string &data);
	double getB() const;
	void setB(double m_a);

private:
	static std::vector<SerializableB> m_instances;
	static const std::string m_name;
	double m_b;
};

#endif /* SERIALIZABLEB_H_ */
